using System;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Microsoft.Practices.EnterpriseLibrary.Data;
using Microsoft.Practices.EnterpriseLibrary.Data.Sql;
using System.Data.Common;
using System.Data;

public partial class ServicePackDetailSQLServer : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Database db = DatabaseFactory.CreateDatabase("Application_Data");

        string sqlQuery = "SELECT InstanceName, InstanceVersion, InstanceServicePack FROM Instance Where InstanceVersion = '"+Request.QueryString["InstanceVersion"].ToString()+"'";
        DataSet ds = db.ExecuteDataSet(CommandType.Text, sqlQuery);

        gv.DataSource = ds;
        gv.DataBind(); 
    }
}
